/* Copyright (C) 2008, 2009, 2010 Faindu GmbH, Switzerland.
* All Rights Reserved. The following is Source Code and is subject to all restrictions 
* on such code as contained in the license accompanying this project. */
package blocstac.editimage.rotate
{
import blocstac.editimage.base.ImageModel;
import blocstac.editimage.base.ImageOperation;

public class RotateOperation implements ImageOperation
{
	private var _initialAngle:Number
	private var _finalAngle:Number
	
	public function RotateOperation(initialAngel:Number, finalAngle:Number)
	{
		_initialAngle = initialAngel
		_finalAngle = finalAngle
	}
	
	public function apply(state:ImageModel):void
	{
		state.angle = _finalAngle
	}
		
	public function undo(state:ImageModel):void
	{
		state.angle = _initialAngle
	}
	
}
}